﻿using Microsoft.Extensions.DependencyInjection;
using Naruto.Configuration;
using Naruto.Configuration.Core;
using System;
using System.Collections.Generic;
using System.Text;

namespace Microsoft.Extensions.DependencyInjection
{
    public static class ConfigurationServiceCollectionExtension
    {

        /// <summary>
        /// 注入配置加载的服务
        /// </summary>
        /// <param name="services"></param>
        /// <returns></returns>
        public static IServiceCollection AddNarutoConfigurationLoad(this IServiceCollection services)
        {
            return services.AddSingleton<INarutoConfigurationLoadAbstract, DefaultNarutoConfigurationLoad>();
        }
    }
}
